package com.sky.mapper;

import com.sky.annotation.AutoFill;
import com.sky.dto.DishDTO;
import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.xmlbeans.impl.xb.xmlconfig.Extensionconfig;
import com.sky.enumeration.OperationType;

import java.util.List;

@Mapper
public interface DishFlavorMapper {


//    @AutoFill(value = OperationType.INSERT)
    public void save(@Param("flavors") List<DishFlavor> flavors , @Param("dishId") Long dishId);
    public void deleteByDishId(List<Integer> dishIds);


    @Select("select * from dish_flavor where dish_id = #{dishid}")
    List<DishFlavor> getByDishId(Long dishid);
}
